package com.cbg.es.entity;

import com.shuyuwl.core.domain.AbstractBaseDomain;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

import javax.persistence.*;

/**
 * 全景通查分类
 *
 * @author wangjuzheng
 * @since 2019-10-16
 */
@Data
@Entity
@Table(name = "es_category")
@EqualsAndHashCode(callSuper = true)
public class EsCategory extends AbstractBaseDomain implements Serializable {

	/**
	 * 全景分类名称
	 */
	@Column(name = "name")
	private String name;

	/**
	 * 图标
	 */
	@Column(name = "icon")
	private String icon;

	/**
	 * 排序
	 */
	@Column(name = "sort")
	private Integer sort;

	/**
	 * 上级分类ID
	 */
	@Column(name = "pid")
	private Long pid;
}
